#ifndef _LOGSYSTEM_H
#define _LOGSYSTEM_H

#define Log LogSystem::getInstance()
#define LOG_MAX_TITLE_LENGTH 64

#include "../StdAfx.h"

class LogSystem
{
public:
	//Metodos
	static LogSystem* getInstance();
	void warning(const char* format,...);
	void info(const char* format,...);
	void error(const char* format,...);
	void success(const char* format,...);
	void setOutputFile(const char* filename);
	void stop();
private:
	LogSystem();
	~LogSystem();
	// Funciones
	void log(const char* format, const char* title, va_list& ap);
	// Variables privadas
	static LogSystem* mInstance;
	FILE* mOutStream;
};

#endif
